package Strings;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class homework3 {
	public static void countWords(String scan) {
			String[] strCount = scan.split(" ");
			Map<String, Integer> strMap = new HashMap<String, Integer>();
				
			for(int i = 0; i < strCount.length; i++){
				if(strMap.get(strCount[i]) != null) {
					strMap.put(strCount[i], strMap.get(strCount[i]) + 1);
				}else {
					strMap.put(strCount[i], 1);
				}
			}	
			
			for (Map.Entry<String, Integer> entry: strMap.entrySet()) {
				System.out.println(entry.getKey() + "=" + entry.getValue());
			}
	}
	public static void main(String[] args){
		//��ȡ������������ַ�����
		String input = new Scanner(System.in).nextLine();
		
		countWords(input);
}


}
